<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试点聚office</title>
</head>
<body>
<div style="width:800px;height:500px;">
    <!-- -----------------------------== 装载weboffice控件 ==--------------------------------- -->
    <script>
        var s = "";
        if(navigator.userAgent.indexOf("MSIE")>0){
            s = "<OBJECT id='WebOffice1' align='middle' style='LEFT: 0px; WIDTH: 100%; TOP: 0px; HEIGHT:100%'"
                    + "classid=clsid:E77E049B-23FC-4DB8-B756-60529A35FAD5>"
                    + "</OBJECT>";
        }

        if(navigator.userAgent.indexOf("Chrome")>0){
            s = "<object id='WebOffice1' type='application/x-itst-activex' align='baseline' border='0'"
                    + "style='LEFT: 0px; WIDTH: 100%; TOP: 0px; HEIGHT: 100%'"
                    + "clsid='{E77E049B-23FC-4DB8-B756-60529A35FAD5}'"
                    + "event_NotifyCtrlReady='WebOffice1_NotifyCtrlReady'>"
                    + "</object>";
        }

        if(navigator.userAgent.indexOf("Firefox")>0){
            s = "<object id='WebOffice1' type='application/x-itst-activex' align='baseline' border='0'"
                    + "style='LEFT: 0px; WIDTH: 100%; TOP: 0px; HEIGHT: 100%'"
                    + "clsid='{E77E049B-23FC-4DB8-B756-60529A35FAD5}'"
                    + "event_NotifyCtrlReady='WebOffice1_NotifyCtrlReady'>"
                    + "</object>";
        }
        document.write(s)
    </script>
    <!-- --------------------------------== 结束装载控件 ==----------------------------------- -->
</div>
</body>
</html>